package com.tao.graduation.Service;

import com.tao.graduation.Pojo.*;

import java.util.List;
import java.util.Map;

public interface AdminService {

    public List<Doctor> queryDoctor(Integer index,Integer LIMIT);
    public int queryDoctorCount();
    public int updateDoctor(Doctor doctor);
    public int updateDoctorHP(Doctor doctor);
    public int deleteDoctor(Integer id);
    public int insertDoctorInfo(Doctor doctor);
    public List<Doctor> searchDoctor(String name,String certId);

    public List<Patient> queryPatient(Integer index,Integer LIMIT);
    public int queryPatientCount();
    public int updatePatient(Patient patient);
    public int deletePatient(Integer id);
    public int insertPatient(Patient patient);
    List<Patient> searchPatient(String name,String certId);

    public List<Drugs> queryDrugs(Integer index,Integer LIMIT);
    public int queryDrugsCount();
    public int insertDrugs(Drugs drugs);
    public int updateDrugs(Drugs drugs);
    public int deleteDrugs(Integer id);
    public List<Drugs> searchDrugs(String name,Integer number);

    public List<Map<String,String>> queryOrder(Integer index, Integer LIMIT);
    public int queryOrderCount();
    public int deleteOrder(Integer id);
    List<Map<String,String>> searchOrder(String name,String doctorName);

    public List<News> queryNews(Integer index, Integer LIMIT);
    public int queryNewsCount();
    public int insertNews(News news);
    public int updateNews(News news);
    public int deleteNews(Integer id);
    List<News> searchNews(String title,String createTime);

    List<Map<String,Integer>> CountPeople(Integer year);
    List<Map<String,Object>> CountCost();



    int selectId(String name);

    List<Map<String,String>> queryHospital(Integer index,Integer LIMIT);
    int queryHospitalCount();

    int updateHospital(Integer id);

    List<Map<String,String>> queryResident(Integer index,Integer LIMIT);
    int queryResidentCount();

    List<Map<String,String>> queryScheduling(String option);

    List<Integer> querySchedulingCount(String option);

    int insertScheduling(Scheduling scheduling);

    int deleteScheduling(Integer id);

    List<String> querySchedulingName(String option);
}
